package com.cch.cooperation.api.vip.controller;

import com.cch.cooperation.api.vip.service.VipAdConfigServiceImpl;
import com.cch.cooperation.common.web.response.Response;
import com.cch.cooperation.dao.vip.model.VipAdConfig;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "Vip广告配置接口")
@RestController
@RequestMapping("/api/vip/ad/config")
public class VipAdConfigController {

    @Resource
    private VipAdConfigServiceImpl vipAdConfigService;

    @ApiOperation(value = "获取广告配置(我的-广告-banner)")
    @GetMapping("/get")
    public Response<VipAdConfig> get() {
        VipAdConfig data = vipAdConfigService.get();
        return Response.success(data);
    }

}
